// *** ADDED BY HEADER FIXUP ***
#include <ctime>
#include <sstream>
#include <string>
// *** END ***
#include "Utilidades.h"

const std::string currentDateTime() {
    time_t     now = time(0);
    struct tm  tstruct;
    char       buf[80];
    tstruct = *localtime(&now);
    // Visit http://www.cplusplus.com/reference/clibrary/ctime/strftime/
    // for more information about date/time format
    strftime(buf, sizeof(buf), "%Y-%m-%d.%X", &tstruct);

    return buf;
}

const std::string convertString(const int& num)
{
    string s;
    ostringstream convert;
    convert<<num;
    s = convert.str();
    return s;
}

const std::string convertString(const double& num)
{
    string s;
    ostringstream convert;
    convert<<num;
    s = convert.str();
    return s;
}
